home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 5 / QRZ Ham Radio Callsign Database - Volume 5.iso / files / dsp / 56ktools / dspkgctr.z / dspkgctr / gcc / config / tm-m88kdgux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-08  |  3.8 KB  |  100 lines

  1. /* $Id: tm-m88kdgux.h,v 1.1 91/06/17 14:59:18 pete Exp $ */
  2. /* This file contains changes made by Data General, December 1989.  */
  3.  
  4. /* Definitions of target machine for GNU compiler.
  5.    Motorola m88100 running DG/UX.
  6.    Copyright (C) 1988, 1989, 1990 Free Software Foundation, Inc.
  7.    Contributed by Michael Tiemann (tiemann@mcc.com)
  8.    Enhanced by Michael Meissner (meissner@osf.org)
  9.    Currently supported by Tom Wood (wood@dg-rtp.dg.com)
  10.  
  11.    This is not an official release from FSF.  (The integration of
  12.    these changes is expected to occur in version 2.0.)  Please report
  13.    bugs to wood@dg-rtp.dg.com, not to the mailing lists.  If you are a
  14.    DG customer, please be aware that no support is offered with this
  15.    version and that you should report bugs through official channels.
  16.  
  17.    The current port of GNU CC to the m88100 is available via anonymous
  18.    ftp to dg-rtp.dg.com.  Please be aware that these sources aren't
  19.    expected to support targets other than the m88100.
  20.  
  21. This file is part of GNU CC.
  22.  
  23. GNU CC is free software; you can redistribute it and/or modify
  24. it under the terms of the GNU General Public License as published by
  25. the Free Software Foundation; either version 1, or (at your option)
  26. any later version.
  27.  
  28. GNU CC is distributed in the hope that it will be useful,
  29. but WITHOUT ANY WARRANTY; without even the implied warranty of
  30. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  31. GNU General Public License for more details.
  32.  
  33. You should have received a copy of the GNU General Public License
  34. along with GNU CC; see the file COPYING.  If not, write to
  35. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  36.  
  37. #include "tm-m88k.h"
  38.  
  39. /* Identify the compiler.  */
  40. #undef  VERSION_INFO
  41. #define VERSION_INFO "88open OCS/BCS, DG-"
  42.  
  43. /* Default switches */
  44. #undef    TARGET_DEFAULT
  45. #define TARGET_DEFAULT    (MASK_CHECK_ZERO_DIV     | \
  46.              MASK_OPTIMIZE_ARG_AREA  | \
  47.              MASK_OCS_DEBUG_INFO     | \
  48.              MASK_OCS_FRAME_POSITION)
  49.  
  50. /* Macros to be automatically defined.  */
  51. #undef    CPP_PREDEFINES
  52. #define CPP_PREDEFINES "-Dm88000 -Dm88k -Dunix -DDGUX -D__CLASSIFY_TYPE__"
  53.  
  54. /* If not -ansi, -traditional, or restricting include files to one
  55.    specific source target, specify full DG/UX features.  */
  56. #undef    CPP_SPEC
  57. #define    CPP_SPEC "\
  58.     %{!ansi:%{!traditional:-D__OPEN_NAMESPACE__}} \
  59.     %{ansi:-D__CLASSIFY_TYPE__}"
  60.  
  61. /* Assembler support (-V, silicon filter, legends for mxdb).  */
  62. #undef    ASM_SPEC
  63. #define ASM_SPEC "\
  64. %{V} %{v:%{!V:-V}} %{pipe: - }\
  65. %{mlegend:-Wc,-fix-bb,-h\"gcc-1.37.29\",-s\"%i\"\
  66. %{traditional:,-lc}%{!traditional:,-lansi-c}\
  67. %{mkeep-coff:,-keep-coff}\
  68. %{mocs-frame-position:,-ocs}\
  69. %{mexternal-legend:,-external}}"
  70.  
  71. /* Linker and library spec's.  */
  72. #undef    LIB_SPEC
  73. #define LIB_SPEC    "-lc"
  74. /* -static, -shared, -symbolic, -h* and -z* access AT&T V.4 link options.  */
  75. #undef    LINK_SPEC
  76. #define LINK_SPEC "%{static:-dn -Bstatic} %{shared:-G -dy} %{symbolic:-Bsymbolic -G -dy} \
  77.            %{z*} %{h*} %{V} %{v:%{!V:-V}} %{pg:-L/usr/lib/libp} %{p:-L/usr/lib/libp}"
  78. /* -svr4 instructs gcc to place /usr/lib/values-X[cat].o on link the line  */
  79. #undef    STARTFILE_SPEC
  80. #define STARTFILE_SPEC "%{pg:gcrt0.o%s}%{!pg:%{p:/lib/mcrt0.o}%{!p:/lib/crt0.o}} \
  81.             %{svr4:%{ansi:/lib/values-Xc.o} \
  82.             %{!ansi:%{traditional:/lib/values-Xt.o}%{!traditional:/usr/lib/values-Xa.o}}}"
  83.  
  84. /* Fast DG/UX version of profiler that does not require lots of
  85.    registers to be stored.  */
  86. #undef    FUNCTION_PROFILER
  87. #define FUNCTION_PROFILER(FILE, LABELNO) \
  88.   output_function_profiler (FILE, LABELNO, "gcc.mcount", 0)
  89.  
  90. /* DGUX V.4 isn't quite ELF.  */
  91. #undef  VERSION_0300_SYNTAX
  92. #define VERSION_0300_SYNTAX (0)
  93.  
  94. /* Output the legend info for mxdb.  */
  95. #undef  ASM_FIRST_LINE
  96. #define ASM_FIRST_LINE(FILE)                        \
  97.   fprintf (FILE, ";legend_info -fix-bb -h\"gcc-1.37.29\""        \
  98.            " -s\"%s\" %s\n", main_input_filename,            \
  99.            (flag_traditional ? "-lc" : "-lansi-c"));        \
  100.